<template>
  <!-- 头部 -->
  <header class="header">
    <van-nav-bar :title="$route.meta.title">
      <van-icon name="search" slot="right" @click="$router.push({path:'search'})"/>
    </van-nav-bar>
  </header>
</template>

<script>
export default {
  name: 'HeaderSearch'
}
</script>

<style lang="scss" scoped>
// 头部
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  .van-nav-bar {
    background-color: #006699;
    .van-nav-bar__title {
      color: #fff;
    }
    .van-icon {
      color: #fff;
    }
  }
}
</style>
